package com.ssy.lingxi.platform.manage.api.hystrix.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.inner.MaterialLibraryFeignController;
import com.ssy.lingxi.platform.manage.api.model.dto.material.MaterialFileInfoDTO;
import com.ssy.lingxi.platform.manage.api.model.vo.material.MaterialFileFeignVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @menu 素材文件微服务接口错误处理
 * @author xiechenhui
 * @version 2.0.0
 * @date 2022/03/31
 */
@Component
public class MaterialLibraryFeignControllerFallback implements MaterialLibraryFeignController {

    @Override
    public Wrapper<List<MaterialFileFeignVO>> findAllByMemberIdAndRoleId(MaterialFileInfoDTO request) {
        return Wrapper.failService("服务调用异常");
    }
}
